package com.mayikt.service;

import com.mayikt.base.BaseApiService;
import com.mayikt.base.BaseResponse;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Name WeiXinService
 * @Author 枫火
 * @Date 2021/3/30 20:22
 * @Description
 **/
@Api(tags = "微信基本服务接口")
public interface WeiXinService {

    /**
     * 微信接口
     *
     * @return
     */
    @GetMapping("appInfo")
    @ApiOperation("appInfo接口")
    @ApiImplicitParam(name = "userId", value = "用户Id", required = true)
    @ApiResponse(code = 200, message = "响应成功")
    String appInfo(@RequestParam("userId") Long userId);

    @GetMapping("/addApp")
    @ApiOperation("addApp接口")
    @ApiImplicitParams({@ApiImplicitParam(name = "appId", value = "应用Id", required = true)
            , @ApiImplicitParam(name = "appPwd", value = "应用密码", required = true)})
    @ApiResponses({@ApiResponse(code = 200, message = "响应成功"),
            @ApiResponse(code = 500, message = "系统错误")})
    BaseResponse<String> addApp(@RequestParam("appId") String appId, @RequestParam("appPwd") String appPwd);
}
